package com.goodboys.bean;

import java.io.Serializable;

/**
 * Created by CJ on 2018-03-29.
 */
public class BaseParamBean implements Serializable{

    //搜索条件
    private String keyword;//检索关键字

    private String db;//目标搜索数据库，取值有：SCDB(综合),CJFQ(期刊),目标搜索数据库，取值有：SCDB(综合),CJFQ(期刊),

    private String sortType;//排序方式，取值：1(综合排序),2(时间降序排序)

    private String start;//	下一页开始位置，首次检索请置为0，下一页位置从上一页的响应中start参数获取，传1，2，3等无效

    private String advance;//开启高级检索，1-开启高级检索，0或者不传递此值则关闭高级检索。使用高级检时，keyword字段使用检索表达式。

    //文章详情
    private String filename;//文献唯一标识，在检索结果中获取

    private String dbcode;//数据库标识，在检索结果中获取

    //全文获取权限接口
    private String filename_en;//文献信息字符，在检索和详情接口中获取

    private String title;//文献标题。不可为空

    private String author;//文献作者

    private String tablename;//检索和详情接口中获取


    //必填参数
    private String app_id;//idata用户id

    private String access_token;//idta秘钥


    public String getApp_id() {
        return (app_id==null) ?"":app_id;
    }

    public void setApp_id(String app_id) {
        this.app_id = app_id;
    }

    public String getAccess_token() {
        return (access_token == null)?"":access_token;
    }

    public void setAccess_token(String access_token) {
        this.access_token = access_token;
    }

    public String getKeyword() {
        return (keyword == null)?"":keyword;
    }

    public void setKeyword(String keyword) {
        this.keyword = keyword;
    }

    public String getDb() {
        return (db == null)?"SCDB":db;
    }

    public void setDb(String db) {
        this.db = db;
    }

    public String getSortType() {
        return (sortType == null)?"1":sortType;
    }

    public void setSortType(String sortType) {
        this.sortType = sortType;
    }

    public String getStart() {
        return (start == null || start.isEmpty()) ? "0": start;
    }

    public void setStart(String start) {
        this.start = start;
    }

    public String getAdvance() {
        return (advance==null)? "0" : advance;
    }

    public void setAdvance(String advance) {
        this.advance = advance;
    }

    public String getFilename() {
        return (filename==null)?"":filename;
    }

    public void setFilename(String filename) {
        this.filename = filename;
    }

    public String getDbcode() {
        return (dbcode==null)?"":dbcode;
    }

    public void setDbcode(String dbcode) {
        this.dbcode = dbcode;
    }

    public String getFilename_en() {
        return (filename_en==null)?"":filename_en;
    }

    public void setFilename_en(String filename_en) {
        this.filename_en = filename_en;
    }

    public String getTitle() {
        return (title==null)?"":title;
    }

    public void setTitle(String title) {
        this.title = title;
    }

    public String getAuthor() {
        return (author==null)?"":author;
    }

    public void setAuthor(String author) {
        this.author = author;
    }

    public String getTablename() {
        return (tablename==null)?"":tablename;
    }

    public void setTablename(String tablename) {
        this.tablename = tablename;
    }
}
